/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author Hendro Steven
 */
@Entity
public class Matakuliah implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String kodeMatakuliah;
    private String namaMatakuliah;
    private int sks;
    @ManyToOne
    private Departemen departemen;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    

    @Override
    public String toString() {
        return this.namaMatakuliah;
    }

    /**
     * @return the kodeMatakuliah
     */
    public String getKodeMatakuliah() {
        return kodeMatakuliah;
    }

    /**
     * @param kodeMatakuliah the kodeMatakuliah to set
     */
    public void setKodeMatakuliah(String kodeMatakuliah) {
        this.kodeMatakuliah = kodeMatakuliah;
    }

    /**
     * @return the namaMatakuliah
     */
    public String getNamaMatakuliah() {
        return namaMatakuliah;
    }

    /**
     * @param namaMatakuliah the namaMatakuliah to set
     */
    public void setNamaMatakuliah(String namaMatakuliah) {
        this.namaMatakuliah = namaMatakuliah;
    }

    /**
     * @return the sks
     */
    public int getSks() {
        return sks;
    }

    /**
     * @param sks the sks to set
     */
    public void setSks(int sks) {
        this.sks = sks;
    }

    /**
     * @return the departemen
     */
    public Departemen getDepartemen() {
        return departemen;
    }

    /**
     * @param departemen the departemen to set
     */
    public void setDepartemen(Departemen departemen) {
        this.departemen = departemen;
    }
    
}
